﻿<Controls:SinacorWindow  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
xmlns:Custom="http://schemas.xceed.com/wpf/xaml/datagrid"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
mc:Ignorable="d" 
xmlns:Controls="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient;assembly=Sinacor.Infra.UI.Controls" 
WindowStartupLocation="CenterScreen" 
AutoContentHeight="False" 
AutoContentWidth="True"
WindowState="Maximized" 
Title="{DynamicResource Bovespa.Parametro.Label.Parametros}"
ModulePlus="false"
ModuleId="BOL"
x:Class="Sinacor.UI.Bovespa.Parametro.View.SmartClient.CadastroParametroBolsa">

    <Grid>
        <Controls:SinacorTabControl HorizontalAlignment="Left"
                            VerticalAlignment="Top"
                            IsSynchronizedWithCurrentItem="True"
                            Height="500"
                            Width="995">

            <Controls:SinacorTabItem Header="{DynamicResource Bovespa.Parametro.Label.Geral}" x:Name="tabGeral">

                <Grid>
                    <Controls:SinacorGroupBox HorizontalAlignment="Left"
                                          VerticalAlignment="Top"
                                          Header=""
                                          Width="430"
                                          Height="150">

                        <Grid>

                            <Controls:SinacorCheckBox VerticalAlignment="Top" x:Name="ckbZeraNota"
                                                  Content="{DynamicResource Bovespa.Parametro.Label.ZeraNota}"
                                                  IsChecked="{Binding Path=presenter.ZeraNota, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}"
                                                  Checked="ckbZeraNota_Checked" Unchecked="ckbZeraNota_Checked"
                                                  Width="150" TabIndex="1"/>

                            <Controls:SinacorRadioButton HorizontalAlignment="Left"
                                                     VerticalAlignment="Top" x:Name="rbDiariamente"
                                                     Content="{DynamicResource Bovespa.Parametro.Label.Diariamente}"
                                                     IsChecked="{Binding Path=presenter.Diariamente, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}"
                                                     Margin="25,25,0,0"
                                                     GroupName="prazo"
                                                     Width="150"
                                                     IsEnabled="False"
                                                     TabIndex="1"/>

                            <Controls:SinacorRadioButton HorizontalAlignment="Left"
                                                     VerticalAlignment="Top" x:Name="rbMensalmente"
                                                     Content="{DynamicResource Bovespa.Parametro.Label.Mensalmente}"
                                                     IsChecked="{Binding Path=presenter.Mensalmente, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}"
                                                     Margin="25,50,0,0"
                                                     GroupName="prazo"
                                                     Width="150"
                                                     IsEnabled="False"
                                                     TabIndex="2"/>

                            <Controls:SinacorRadioButton HorizontalAlignment="Left"
                                                     VerticalAlignment="Top" x:Name="rbAnualmente"
                                                     Content="{DynamicResource Bovespa.Parametro.Label.Anualmente}"
                                                     IsChecked="{Binding Path=presenter.Anualmente, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}"
                                                     Margin="25,75,0,0"
                                                     GroupName="prazo"
                                                     Width="150"
                                                     IsEnabled="False"
                                                     TabIndex="3"/>

                            <Controls:SinacorLabel HorizontalAlignment="Left"
                                               Content="{DynamicResource Bovespa.Parametro.Label.UltimaNotaEmitida}"
                                               Margin="140,25,0,0"
                                               Width="150"/>

                            <Controls:SinacorInt32TextBox HorizontalAlignment="Left" x:Name="txtUltimaNotaEmitida"
                                                 VerticalAlignment="Top" Value="{Binding ParametroBolsa.UltimaNotaEmitida}"
                                                 Width="100" Integers="9" IsRequired="True" RequiredErrorMessage="Bovespa.Parametro.ExceptionMessage.NumeroUltimaNotaObrigatorio"
                                                 LostFocus="txtUltimaNotaEmitida_LostFocus"
                                                 Margin="295,25,0,0"
                                                 TabIndex="4"/>

                            <Controls:SinacorCheckBox VerticalAlignment="Top"
                                                  Content="{DynamicResource Bovespa.Parametro.Label.NumeraNotaConsolidacao}"
                                                  Margin="187,50,0,0"
                                                  Width="225" x:Name="ckbNumeraNotaConsolidacao"
                                                  IsChecked="{Binding ParametroBolsa.NumeraNota}"
                                                  TabIndex="5"/>

                            <Controls:SinacorCheckBox VerticalAlignment="Top"
                                                  Content="{DynamicResource Bovespa.Parametro.Label.AgrupaNotaPorPreco}"
                                                  IsChecked="{Binding ParametroBolsa.AgrupaNota}"
                                                  x:Name="ckbAgrupaNota"
                                                  Margin="187,75,0,0"
                                                  Width="225"
                                                  TabIndex="6"/>
                        </Grid>

                    </Controls:SinacorGroupBox>


                    <Controls:SinacorGroupBox HorizontalAlignment="Left"
                                          VerticalAlignment="Top"
                                          Header=""
                                          Width="338"
                                          Height="150"
                                          Margin="438,0,0,0">

                        <Grid>

                            <Controls:SinacorCheckBox VerticalAlignment="Top"
                                                      Content="{DynamicResource Bovespa.Parametro.Label.IRRFLiquido}"
                                                      Width="230" x:Name="ckbBaseLiquido"
                                                      IsChecked="{Binding ParametroBolsa.BaseLiquido}"
                                                      TabIndex="7"/>

                            <Controls:SinacorCheckBox VerticalAlignment="Top"
                                                      Content="{DynamicResource Bovespa.Parametro.Label.IRRFNota}"
                                                      Margin="0,25,0,0" x:Name="ckbLiquidoNota"
                                                      IsChecked="{Binding ParametroBolsa.LiquidoNota}"
                                                      Width="230"                                                   
                                                      TabIndex="8"/>

                            <Controls:SinacorCheckBox VerticalAlignment="Top"
                                                      Content="{DynamicResource Bovespa.Parametro.Label.IndicadorCorrespondentePracaPrincipal}"
                                                      Margin="0,50,0,0"
                                                      Width="320" x:Name="ckbCorrespondente"
                                                      IsChecked="{Binding ParametroBolsa.Correspondente}"
                                                      TabIndex="9"/>

                            <Controls:SinacorCheckBox VerticalAlignment="Top"
                                                      Content="{DynamicResource Bovespa.Parametro.Label.IndicaComissaoAssessorVolume}"
                                                      Margin="0,75,0,0"
                                                      Width="320" x:Name="ckbComissao"
                                                      IsChecked="{Binding ParametroBolsa.Comissao}"                                                      
                                                      TabIndex="10"/>

                            <Controls:SinacorCheckBox VerticalAlignment="Top"
                                                      Content="{DynamicResource Bovespa.Parametro.Label.IRRFOperacoesLiquidoNota}"
                                                      Margin="0,100,0,0"
                                                      Width="320" x:Name="ckbSemOperacao"
                                                      IsChecked="{Binding ParametroBolsa.SemOperacao}"                                                       
                                                      TabIndex="11"/>

                        </Grid>

                    </Controls:SinacorGroupBox>

                    <Controls:SinacorLabel HorizontalAlignment="Left"
                                           Content="{DynamicResource Bovespa.Parametro.Label.Mensagem}"
                                           Margin="0,160,0,0"
                                           HorizontalContentAlignment="Left"/>

                    <Controls:SinacorComboBox HorizontalAlignment="Left"
                                              VerticalAlignment="Top"                                              
                                              Margin="0,181,0,0" x:Name="cboMensagem"
                                              Width="776"                                           
                                              HorizontalContentAlignment="Left" 
                                              SelectedValue="{Binding Path=ParametroBolsa.Mensagem}" 
                                              ItemsSource="{Binding Path=presenter.ListaMensagens, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}" 
                                              SelectedValuePath="Codigo"
                                              DisplayMemberPath="Descricao"  
                                              TabIndex="12"/>

                    <Controls:SinacorTextBox HorizontalAlignment="Left"
                                             VerticalAlignment="Top"
                                             Text="{Binding ElementName=cboMensagem, Path=SelectedItem.Descricao}" 
                                             TextWrapping="Wrap"
                                             Margin="0,207,0,0"
                                             Width="776" MaxLength="400"
                                             Height="55" IsReadOnly="True" 
                                             x:Name="txtMensagem"/>

                    <Controls:SinacorLabel HorizontalAlignment="Left"
                                           Content="{DynamicResource Bovespa.Parametro.Label.CaminhoArquivoNota}"
                                           Margin="0,270,0,0"
                                           Width="188"
                                           HorizontalContentAlignment="Left"/>

                    <!--<Controls:SinacorFolderPicker Value="{Binding ParametroBolsa.CaminhoNota}" x:Name="btnBrowse" ShowIconOnButton="True" 
                                            WidthPath="748"  VerticalAlignment="Top" 
                                            Margin="0,291,0,0"
                                            TabIndex="13" HorizontalAlignment="Left"/>-->
                    
                    <Controls:SinacorTextBox Text="{Binding ParametroBolsa.CaminhoNota}" x:Name="btnBrowse"
                                             VerticalAlignment="Top" 
                                             Margin="0,291,0,0"
                                             TabIndex="13"
                                             Width="776"
                                             HorizontalAlignment="Left"
                                             MaxLength="150"/>

                </Grid>
            </Controls:SinacorTabItem>

            <Controls:SinacorTabItem Header="{DynamicResource Bovespa.Parametro.Label.Integracoes}">
                <Grid>
                    <Controls:SinacorExpanderContainer x:Name="ExpanderContainer"
                                                   VerticalAlignment="Stretch">

                        <Controls:SinacorCheckBox VerticalAlignment="Top"
                                          Content="{DynamicResource Bovespa.Parametro.Label.IntegrarSistemaContasCorrentes}"
                                          Width="350" x:Name="ckbIntegraContasCorrentes"
                                          IsChecked="{Binding ParametroBolsa.IntegraContasCorrentes}"
                                          TabIndex="1" Checked="ckbIntegraContasCorrentes_Checked" Unchecked="ckbIntegraContasCorrentes_Checked"/>

                        <Controls:SinacorExpander
                                          Header="{DynamicResource Bovespa.Parametro.Label.TiposNotaCorretagem}"
                                          Margin="0,25,0,0"
                                          x:Name="ExpanderTipo"
                                          Height="350"
                                          AllowExpand="False"
                                          HorizontalAlignment="Left"
                                          VerticalAlignment="Top"
                                          IsExpanded="True">
                            <Grid>
                                <Controls:SinacorDataGrid x:Name="dtgTipoNotas"
                                        Margin="0,0,0,0" AllowBeginInsert="false"  
                                        ItemsSource="{Binding Path=presenter.ListaTiposNotas, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}" 
                                        SelectedItem="{Binding Path=presenter.TipoNota, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Controls:SinacorWindow}}}" 
                                        AllowBeginUpdate="False" IsSynchronizedWithCurrentItem="True" AllowSave="False" Width="340">

                                    <Controls:SinacorDataGrid.Columns>
                                        <Controls:Column Name="CPMF"
                                                 DisplayMemberPath="CPMF"
                                                 Visible="False"
                                                 Title="Bovespa.Parametro.Label.CPMF"/>
                                        
                                        <Controls:Column Name="NumeroDiasLiquidacao"
                                                 DisplayMemberPath="NumeroDiasLiquidacao"
                                                 Visible="False"
                                                 Title="Bovespa.Parametro.Label.NumDiasLiquidacao"/>

                                        <Controls:Column Name="Descricao"
                                                 Title="Bovespa.Parametro.Label.Descricao"
                                                 IsRequired="True"
                                                 AllowInsert="False"
                                                 AllowUpdate="False" 
                                                 DisplayMemberPath="DescricaoTipoNota"
                                                 HorizontalCellAlignment="Left" />

                                        <Controls:Column Name="TipoNota"
                                                 Title="Bovespa.Parametro.Label.TipoNota"
                                                 DisplayMemberPath="CodigoTipoNota"
                                                 Visible="False"/>
                                    </Controls:SinacorDataGrid.Columns>
                                </Controls:SinacorDataGrid>
                            </Grid>
                        </Controls:SinacorExpander>

                        <Controls:SinacorExpander HorizontalAlignment="Stretch"
                                                  VerticalAlignment="Top"
                                                  Header="{DynamicResource Bovespa.Parametro.Label.HistoricosCreditoDebito}"
                                                  x:Name="ExpanderLimites"
                                                  Margin="365,25,0,0"
                                                                                                    IsEnabled="True"
                                                  IsExpanded="True"
                                                  AllowExpand="False"
												  Width="Auto">
                            <Grid>


                                <Controls:SinacorGroupBox HorizontalAlignment="Left"
                                                          VerticalAlignment="Top"
                                                          Header="{DynamicResource Bovespa.Parametro.Label.NotaCorretagem}"
                                                          Height="115"
                                                          Width="185">

                                    <Grid Height="85">

                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Margin="75,0,0,0"
                                                               Width="30"
                                                               Content="{DynamicResource Bovespa.Parametro.Label.DIA}"
                                                               HorizontalContentAlignment="Left"/>

                                        <Controls:SinacorLabel Margin="125,0,0,0"
                                                               Width="30"
                                                               Content="{DynamicResource Bovespa.Parametro.Label.EST}"
                                                               HorizontalContentAlignment="Left"
                                                               HorizontalAlignment="Left"/>

                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Margin="0,25,0,0"
                                                               Width="60"
                                                               Content="{DynamicResource Bovespa.Parametro.Label.Credito}"/>

                                        <Controls:SinacorInt32TextBox HorizontalAlignment="Left"
                                                                 Margin="65,25,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45"
                                                                 IsRequired="false"
                                                                 Integers="3"
                                                                 x:Name="txtNotaCorretagemDiaCredito"
                                                                 KeyDown="txtCredito_KeyDown"
                                                                 Value="{Binding TipoNota.NotaCorretagemDiaCredito}" 
                                                                 Foreground="{DynamicResource BrushGridRowBusiness02}"
                                                                 TabIndex="2"/>

                                        <Controls:SinacorInt32TextBox Margin="115,25,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45" KeyDown="txtCredito_KeyDown"
                                                                 IsRequired="false"
                                                                 Integers="3" 
                                                                 x:Name="txtNotaCorretagemEstornoCredito"
                                                                 HorizontalAlignment="Left"
                                                                 Value="{Binding TipoNota.NotaCorretagemEstornoCredito}"
                                                                 Foreground="{DynamicResource BrushGridRowBusiness02}"
                                                                 TabIndex="4"/>

                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Margin="0,50,0,0"
                                                               Width="60"
                                                               Content="{DynamicResource Bovespa.Parametro.Label.Debito}"/>

                                        <Controls:SinacorInt32TextBox Margin="65,50,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45"
                                                                 KeyDown="txtDebito_KeyDown"
                                                                 HorizontalAlignment="Left"
                                                                 x:Name="txtNotaCorretagemDiaDebito"
                                                                 Foreground="{DynamicResource BrushGridRowBusiness06}"
                                                                 IsRequired="false"
                                                                 Integers="3"
                                                                 Value="{Binding TipoNota.NotaCorretagemDiaDebito}"
                                                                 TabIndex="3"/>

                                        <Controls:SinacorInt32TextBox Margin="115,50,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45" KeyDown="txtDebito_KeyDown"
                                                                 x:Name="txtNotaCorretagemEstornoDebito"
                                                                 IsRequired="false"
                                                                 Integers="3"
                                                                 Value="{Binding TipoNota.NotaCorretagemEstornoDebito}"
                                                                 HorizontalAlignment="Left"
                                                                 Foreground="{DynamicResource BrushGridRowBusiness06}"
                                                                 TabIndex="5"/>
                                    </Grid>

                                </Controls:SinacorGroupBox>

                                <Controls:SinacorGroupBox Width="185"
                                                          Height="115"
                                                          Header="{DynamicResource Bovespa.Parametro.Label.CorrespAgCompensacao}"
                                                          HorizontalAlignment="Left"
                                                          VerticalAlignment="Top"
                                                          Margin="190,0,0,0">
                                    <Grid Height="85">

                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Margin="75,0,0,0"
                                                               Width="30"
                                                               Content="{DynamicResource Bovespa.Parametro.Label.DIA}"
                                                               HorizontalContentAlignment="Left"/>

                                        <Controls:SinacorLabel Margin="125,0,0,0"
                                                               Width="30"
                                                               Content="{DynamicResource Bovespa.Parametro.Label.EST}"
                                                               HorizontalContentAlignment="Left"
                                                               HorizontalAlignment="Left"/>

                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Margin="0,25,0,0"
                                                               Width="60"
                                                               Content="{DynamicResource Bovespa.Parametro.Label.Credito}"/>

                                        <Controls:SinacorInt32TextBox HorizontalAlignment="Left"
                                                                 Margin="65,25,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45" KeyDown="txtCredito_KeyDown" 
                                                                 x:Name="txtAgenteDiaCredito"
                                                                 IsRequired="False"
                                                                 Integers="3"
                                                                 Value="{Binding TipoNota.AgenteDiaCredito}"                                                                 
                                                                 Foreground="{DynamicResource BrushGridRowBusiness02}"
                                                                 TabIndex="6"/>

                                        <Controls:SinacorInt32TextBox Margin="115,25,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45" KeyDown="txtCredito_KeyDown"  
                                                                 x:Name="txtAgenteEstornoCredito"
                                                                 IsRequired="False"
                                                                 Integers="3"
                                                                 Value="{Binding TipoNota.AgenteEstornoCredito}"                                                                 
                                                                 HorizontalAlignment="Left"
                                                                 Foreground="{DynamicResource BrushGridRowBusiness02}"
                                                                 TabIndex="8"/>

                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Margin="0,50,0,0"
                                                               Width="60"
                                                               Content="{DynamicResource Bovespa.Parametro.Label.Debito}"/>

                                        <Controls:SinacorInt32TextBox Margin="65,50,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45"
                                                                 x:Name="txtAgenteDiaDebito"
                                                                 IsRequired="False" KeyDown="txtDebito_KeyDown" 
                                                                 Integers="3"
                                                                 Value="{Binding TipoNota.AgenteDiaDebito}"                                                                 
                                                                 HorizontalAlignment="Left"
                                                                 Foreground="{DynamicResource BrushGridRowBusiness06}"
                                                                 TabIndex="7"/>

                                        <Controls:SinacorInt32TextBox Margin="115,50,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45" KeyDown="txtDebito_KeyDown" 
                                                                 x:Name="txtAgenteEstornoDebito"
                                                                 IsRequired="False"
                                                                 Integers="3"
                                                                 Value="{Binding TipoNota.AgenteEstornoDebito}"                                                                 
                                                                 HorizontalAlignment="Left"
                                                                 Foreground="{DynamicResource BrushGridRowBusiness06}"
                                                                 TabIndex="9"/>
                                    </Grid>

                                </Controls:SinacorGroupBox>

                                <Controls:SinacorGroupBox HorizontalAlignment="Left"
                                                        Width="185"
                                                        Height="115"
                                                        Header="{DynamicResource Bovespa.Parametro.Label.IROperacoes}"
                                                        VerticalAlignment="Top"
                                                        Margin="380,0,0,0">
                                    <Grid Height="85">
                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Margin="75,0,0,0"
                                                               Width="30"
                                                               Content="{DynamicResource  Bovespa.Parametro.Label.DIA}"
                                                               HorizontalContentAlignment="Left"/>
                                        <Controls:SinacorLabel Margin="125,0,0,0"
                                                               Width="30"
                                                               Content="{DynamicResource  Bovespa.Parametro.Label.EST}"
                                                               HorizontalContentAlignment="Left"
                                                               HorizontalAlignment="Left"/>
                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Margin="0,25,0,0"
                                                               Width="60"
                                                               Content="{DynamicResource Bovespa.Parametro.Label.Credito}"/>
                                        <Controls:SinacorInt32TextBox Margin="115,25,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45" KeyDown="txtCredito_KeyDown" 
                                                                 x:Name="txtIrOperacoesEstornoCredito"
                                                                 IsRequired="False"
                                                                 Integers="3"
                                                                 Value="{Binding TipoNota.IrOperacoesEstornoCredito}"                                                                 
                                                                 HorizontalAlignment="Left"
                                                                 Foreground="{DynamicResource BrushGridRowBusiness02}"
                                                                 TabIndex="11"/>
                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Margin="0,50,0,0"
                                                               Width="60"
                                                               Content="{DynamicResource Bovespa.Parametro.Label.Debito}"/>
                                        <Controls:SinacorInt32TextBox Margin="65,50,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45" KeyDown="txtDebito_KeyDown" 
                                                                 x:Name="txtIrOperacoesDiaDebito"
                                                                 IsRequired="False"
                                                                 Integers="3"
                                                                 Value="{Binding TipoNota.IrOperacoesDiaDebito}"                                                                 
                                                                 HorizontalAlignment="Left"
                                                                 Foreground="{DynamicResource BrushGridRowBusiness06}"
                                                                 TabIndex="10"/>
                                    </Grid>
                                </Controls:SinacorGroupBox>

                                <Controls:SinacorCheckBox VerticalAlignment="Top"
                                                          x:Name="ckbEnviaCarteira"
                                                          Content="{DynamicResource Bovespa.Parametro.Label.EnviaCarteiraPropriaContaCorrente}"
                                                          Margin="0,120,0,0"
                                                          Width="300" IsChecked="{Binding ParametroBolsa.EnviaCarteira}"
                                                          TabIndex="12"/>

                                <Controls:SinacorCheckBox VerticalAlignment="Top"
                                                          x:Name="ckbEnviaAgente"
                                                          Content="{DynamicResource Bovespa.Parametro.Label.EnviaAgCompensacaoContaCorrente}"
                                                          Margin="305,120,0,0" IsChecked="{Binding ParametroBolsa.EnviaAgente}"
                                                          Width="300"
                                                          TabIndex="13"/>
                            </Grid>
                        </Controls:SinacorExpander>

                        <Controls:SinacorExpander Margin="365,215,0,0"
                                                  x:Name="ExpanderFuturos"
                                                  VerticalAlignment="Top"
                                                  Header="{DynamicResource Bovespa.Parametro.Label.Futuros}"
                                                  HorizontalAlignment="Stretch"
                                                  Width="Auto"
                                                  Height="160"
                                                  AllowExpand="False" IsExpanded="True">

                            <Grid>


                                <Controls:SinacorGroupBox HorizontalAlignment="Left"
                                                          VerticalAlignment="Top"
                                                          Width="185"
                                                          Height="115"
                                                          Header="{DynamicResource Bovespa.Parametro.Label.AjusteNegocio}">
                                    <Grid Height="85">
                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Margin="75,0,0,0"
                                                               Width="30"
                                                               Content="{DynamicResource  Bovespa.Parametro.Label.DIA}"
                                                               HorizontalContentAlignment="Left"/>

                                        <Controls:SinacorLabel Margin="125,0,0,0"
                                                               Width="30"
                                                               Content="{DynamicResource  Bovespa.Parametro.Label.EST}"
                                                               HorizontalContentAlignment="Left"
                                                               HorizontalAlignment="Left"/>

                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Margin="0,25,0,0"
                                                               Width="60"
                                                               Content="{DynamicResource Bovespa.Parametro.Label.Credito}"/>

                                        <Controls:SinacorInt32TextBox HorizontalAlignment="Left"
                                                                 Margin="65,25,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45" KeyDown="txtCredito_KeyDown" 
                                                                 x:Name="txtAjusteNegocioDiaCredito"
                                                                 IsRequired="False"
                                                                 Integers="3"
                                                                 Value="{Binding TipoNota.AjusteNegocioDiaCredito}"   
                                                                 Foreground="{DynamicResource BrushGridRowBusiness02}"
                                                                 TabIndex="14"/>

                                        <Controls:SinacorInt32TextBox Margin="115,25,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45" KeyDown="txtCredito_KeyDown" 
                                                                 x:Name="txtAjusteNegocioEstornoCredito"
                                                                 IsRequired="False"
                                                                 Integers="3"
                                                                 Value="{Binding TipoNota.AjusteNegocioEstornoCredito}"   
                                                                 HorizontalAlignment="Left"
                                                                 Foreground="{DynamicResource BrushGridRowBusiness02}"
                                                                 TabIndex="16"/>

                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Margin="0,50,0,0"
                                                               Width="60"
                                                               Content="{DynamicResource Bovespa.Parametro.Label.Debito}"/>

                                        <Controls:SinacorInt32TextBox Margin="65,50,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45" KeyDown="txtDebito_KeyDown" 
                                                                 x:Name="txtAjusteNegocioDiaDebito"
                                                                 IsRequired="False"
                                                                 Integers="3"
                                                                 Value="{Binding TipoNota.AjusteNegocioDiaDebito}"   
                                                                 HorizontalAlignment="Left"
                                                                 Foreground="{DynamicResource BrushGridRowBusiness06}"
                                                                 TabIndex="15"/>

                                        <Controls:SinacorInt32TextBox Margin="115,50,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45" KeyDown="txtDebito_KeyDown" 
                                                                 x:Name="txtAjusteNegocioEstornoDebito"
                                                                 IsRequired="False"
                                                                 Integers="3"
                                                                 Value="{Binding TipoNota.AjusteNegocioEstornoDebito}"   
                                                                 HorizontalAlignment="Left"
                                                                 Foreground="{DynamicResource BrushGridRowBusiness06}"
                                                                 TabIndex="17"/>
                                    </Grid>
                                </Controls:SinacorGroupBox>

                                <Controls:SinacorGroupBox Width="185"
                                                          Height="115"
                                                          Header="{DynamicResource Bovespa.Parametro.Label.AjusteDayTrade}"
                                                          HorizontalAlignment="Left"
                                                          Margin="190,0,0,0"
                                                          VerticalAlignment="Top">
                                    <Grid Height="85">
                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Margin="75,0,0,0"
                                                               Width="30"
                                                               Content="{DynamicResource  Bovespa.Parametro.Label.DIA}"
                                                               HorizontalContentAlignment="Left"/>

                                        <Controls:SinacorLabel Margin="125,0,0,0"
                                                               Width="30"
                                                               Content="{DynamicResource  Bovespa.Parametro.Label.EST}"
                                                               HorizontalContentAlignment="Left"
                                                               HorizontalAlignment="Left"/>

                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Margin="0,25,0,0"
                                                               Width="60"
                                                               Content="{DynamicResource Bovespa.Parametro.Label.Credito}"/>

                                        <Controls:SinacorInt32TextBox HorizontalAlignment="Left"
                                                                 Margin="65,25,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45" KeyDown="txtCredito_KeyDown" 
                                                                 x:Name="txtAjusteDayTradeDiaCredito"
                                                                 IsRequired="False"
                                                                 Integers="3"
                                                                 Value="{Binding TipoNota.DayTradeDiaCredito}"   
                                                                 Foreground="{DynamicResource BrushGridRowBusiness02}"
                                                                 TabIndex="18"/>

                                        <Controls:SinacorInt32TextBox Margin="115,25,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45" KeyDown="txtCredito_KeyDown" 
                                                                 x:Name="txtAjusteDayTradeEstornoCredito"
                                                                 IsRequired="False"
                                                                 Integers="3"
                                                                 Value="{Binding TipoNota.DayTradeEstornoCredito}"   
                                                                 HorizontalAlignment="Left"
                                                                 Foreground="{DynamicResource BrushGridRowBusiness02}"
                                                                 TabIndex="20"/>

                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Margin="0,50,0,0"
                                                               Width="60"
                                                               Content="{DynamicResource Bovespa.Parametro.Label.Debito}"/>

                                        <Controls:SinacorInt32TextBox Margin="65,50,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45" KeyDown="txtDebito_KeyDown"
                                                                 x:Name="txtAjusteDayTradeDiaDebito"
                                                                 IsRequired="False"
                                                                 Integers="3"
                                                                 Value="{Binding TipoNota.DayTradeDiaDebito}"   
                                                                 HorizontalAlignment="Left"
                                                                 Foreground="{DynamicResource BrushGridRowBusiness06}"
                                                                 TabIndex="19"/>

                                        <Controls:SinacorInt32TextBox Margin="115,50,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45" KeyDown="txtDebito_KeyDown" 
                                                                 x:Name="txtAjusteDayTradeEstornoDebito"
                                                                 IsRequired="False"
                                                                 Integers="3"
                                                                 Value="{Binding TipoNota.DayTradeEstornoDebito}"   
                                                                 HorizontalAlignment="Left"
                                                                 Foreground="{DynamicResource BrushGridRowBusiness06}"
                                                                 TabIndex="21"/>
                                    </Grid>
                                </Controls:SinacorGroupBox>

                                <Controls:SinacorGroupBox HorizontalAlignment="Left"
                                                          Width="185"
                                                          Height="115"
                                                          Header="{DynamicResource Bovespa.Parametro.Label.AjusteDePosicao}"
                                                          Margin="380,0,0,0"
                                                          VerticalAlignment="Top">
                                    <Grid Height="85">

                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Margin="75,0,0,0"
                                                               Width="30"
                                                               Content="{DynamicResource  Bovespa.Parametro.Label.DIA}"
                                                               HorizontalContentAlignment="Left"/>

                                        <Controls:SinacorLabel Margin="125,0,0,0"
                                                               Width="30"
                                                               Content="{DynamicResource  Bovespa.Parametro.Label.EST}"
                                                               HorizontalContentAlignment="Left"
                                                               HorizontalAlignment="Left"/>

                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Margin="0,25,0,0"
                                                               Width="60"
                                                               Content="{DynamicResource Bovespa.Parametro.Label.Credito}"/>

                                        <Controls:SinacorInt32TextBox HorizontalAlignment="Left"
                                                                 Margin="65,25,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45" KeyDown="txtCredito_KeyDown" 
                                                                 x:Name="txtAjustePosicaoDiaCredito"
                                                                 IsRequired="False"
                                                                 Integers="3"
                                                                 Value="{Binding TipoNota.AjustePosicaoDiaCredito}"   
                                                                 Foreground="{DynamicResource BrushGridRowBusiness02}"
                                                                 TabIndex="22"/>

                                        <Controls:SinacorInt32TextBox Margin="115,25,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45" KeyDown="txtCredito_KeyDown" 
                                                                 x:Name="txtAjustePosicaoEstornoCredito"
                                                                 IsRequired="False"
                                                                 Integers="3"
                                                                 Value="{Binding TipoNota.AjustePosicaoEstornoCredito}"   
                                                                 HorizontalAlignment="Left"
                                                                 Foreground="{DynamicResource BrushGridRowBusiness02}"
                                                                 TabIndex="24"/>

                                        <Controls:SinacorLabel HorizontalAlignment="Left"
                                                               Margin="0,50,0,0"
                                                               Width="60"
                                                               Content="{DynamicResource Bovespa.Parametro.Label.Debito}"/>

                                        <Controls:SinacorInt32TextBox Margin="65,50,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45"
                                                                 x:Name="txtAjustePosicaoDiaDebito"                                                                      
                                                                 IsRequired="False"
                                                                 Integers="3" KeyDown="txtDebito_KeyDown" 
                                                                 Value="{Binding TipoNota.AjustePosicaoDiaDebito}"   
                                                                 HorizontalAlignment="Left"
                                                                 Foreground="{DynamicResource BrushGridRowBusiness06}"
                                                                 TabIndex="23"/>

                                        <Controls:SinacorInt32TextBox Margin="115,50,0,0"
                                                                 VerticalAlignment="Top"
                                                                 Width="45" KeyDown="txtDebito_KeyDown" 
                                                                 x:Name="txtAjustePosicaoEstornoDebito"
                                                                 IsRequired="False"
                                                                 Integers="3"
                                                                 Value="{Binding TipoNota.AjustePosicaoEstornoDebito}"   
                                                                 HorizontalAlignment="Left"
                                                                 Foreground="{DynamicResource BrushGridRowBusiness06}"
                                                                 TabIndex="25"/>
                                    </Grid>
                                </Controls:SinacorGroupBox>
                            </Grid>
                        </Controls:SinacorExpander>

                        <Controls:SinacorExpander Margin="0,386,0,0"
                                                  x:Name="ExpanderModalidades"
                                                  Header="{DynamicResource Bovespa.Parametro.Label.ModalidadesIntegracao}"
                                                                                                    Height="60"
                                                  VerticalAlignment="Top"
                                                  HorizontalAlignment="Stretch"
                                                  AllowExpand="False" IsExpanded="True">
                            <Grid>
                                <Controls:SinacorCheckBox Content="{DynamicResource Bovespa.Parametro.Label.IntegrarCustodia}"
                                                          Width="200" x:Name="ckbIntegraCustodia"
                                                          IsChecked="{Binding ParametroBolsa.IntegraCustodia}"
                                                          TabIndex="26"/>

                                <Controls:SinacorCheckBox Content="{DynamicResource Bovespa.Parametro.Label.IntegrarContabilidade}"
                                                          Margin="255,0,0,0" x:Name="ckbIntegraContabilidade"
                                                          Width="200"
                                                          IsChecked="{Binding ParametroBolsa.IntegraContabilidade}"
                                                          TabIndex="27"/>

                                <Controls:SinacorCheckBox Content="{DynamicResource Bovespa.Parametro.Label.IntegrarTesouraria}"
                                                          Width="200" x:Name="ckbIntegraTesouraria"
                                                          Margin="510,0,0,0"
                                                          IsChecked="{Binding ParametroBolsa.IntegraTesouraria}"                                                          
                                                          TabIndex="28"/>
                            </Grid>
                        </Controls:SinacorExpander>
                    </Controls:SinacorExpanderContainer>
                </Grid>
            </Controls:SinacorTabItem>
        </Controls:SinacorTabControl>
        <Controls:SinacorButton HorizontalAlignment="Left"
                                VerticalAlignment="Top"
                                Content="{DynamicResource Bovespa.Parametro.Label.Salvar}"
                                Width="90" x:Name="btnSalvar" Click="btnSalvar_Click"
                                Margin="810,510,0,0"  CausesValidation="True" 

                                IsDefault="True"/>
        <Controls:SinacorButton HorizontalAlignment="Left"
                                VerticalAlignment="Top" CausesValidation="False" 

                                Content="{DynamicResource Bovespa.Parametro.Label.Cancelar}" Click="btnCancelar_Click"
                                Width="90" Name="btnCancelar"
                                Margin="905,510,0,0"/>
    </Grid>
</Controls:SinacorWindow>
